﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200016B RID: 363
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyRogueShopMiracleCsReq : IMessage<BuyRogueShopMiracleCsReq>, IMessage, IEquatable<BuyRogueShopMiracleCsReq>, IDeepCloneable<BuyRogueShopMiracleCsReq>, IBufferMessage
	{
		// Token: 0x170004D9 RID: 1241
		// (get) Token: 0x0600106E RID: 4206 RVA: 0x000302C5 File Offset: 0x0002E4C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyRogueShopMiracleCsReq> Parser
		{
			get
			{
				return BuyRogueShopMiracleCsReq._parser;
			}
		}

		// Token: 0x170004DA RID: 1242
		// (get) Token: 0x0600106F RID: 4207 RVA: 0x000302CC File Offset: 0x0002E4CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyRogueShopMiracleCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004DB RID: 1243
		// (get) Token: 0x06001070 RID: 4208 RVA: 0x000302DE File Offset: 0x0002E4DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyRogueShopMiracleCsReq.Descriptor;
			}
		}

		// Token: 0x06001071 RID: 4209 RVA: 0x000302E5 File Offset: 0x0002E4E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopMiracleCsReq()
		{
		}

		// Token: 0x06001072 RID: 4210 RVA: 0x000302F8 File Offset: 0x0002E4F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopMiracleCsReq(BuyRogueShopMiracleCsReq other) : this()
		{
			this.boughtMiracleList_ = other.boughtMiracleList_.Clone();
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001073 RID: 4211 RVA: 0x0003032E File Offset: 0x0002E52E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyRogueShopMiracleCsReq Clone()
		{
			return new BuyRogueShopMiracleCsReq(this);
		}

		// Token: 0x170004DC RID: 1244
		// (get) Token: 0x06001074 RID: 4212 RVA: 0x00030336 File Offset: 0x0002E536
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BoughtMiracleList
		{
			get
			{
				return this.boughtMiracleList_;
			}
		}

		// Token: 0x170004DD RID: 1245
		// (get) Token: 0x06001075 RID: 4213 RVA: 0x0003033E File Offset: 0x0002E53E
		// (set) Token: 0x06001076 RID: 4214 RVA: 0x00030346 File Offset: 0x0002E546
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x06001077 RID: 4215 RVA: 0x0003034F File Offset: 0x0002E54F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyRogueShopMiracleCsReq);
		}

		// Token: 0x06001078 RID: 4216 RVA: 0x00030360 File Offset: 0x0002E560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyRogueShopMiracleCsReq other)
		{
			return other != null && (other == this || (this.boughtMiracleList_.Equals(other.boughtMiracleList_) && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001079 RID: 4217 RVA: 0x000303B0 File Offset: 0x0002E5B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.boughtMiracleList_.GetHashCode();
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600107A RID: 4218 RVA: 0x000303FD File Offset: 0x0002E5FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600107B RID: 4219 RVA: 0x00030405 File Offset: 0x0002E605
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600107C RID: 4220 RVA: 0x00030410 File Offset: 0x0002E610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.boughtMiracleList_.WriteTo(ref output, BuyRogueShopMiracleCsReq._repeated_boughtMiracleList_codec);
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600107D RID: 4221 RVA: 0x00030460 File Offset: 0x0002E660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.boughtMiracleList_.CalculateSize(BuyRogueShopMiracleCsReq._repeated_boughtMiracleList_codec);
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600107E RID: 4222 RVA: 0x000304B4 File Offset: 0x0002E6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyRogueShopMiracleCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.boughtMiracleList_.Add(other.boughtMiracleList_);
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600107F RID: 4223 RVA: 0x00030501 File Offset: 0x0002E701
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001080 RID: 4224 RVA: 0x0003050C File Offset: 0x0002E70C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U && num != 50U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.boughtMiracleList_.AddEntriesFrom(ref input, BuyRogueShopMiracleCsReq._repeated_boughtMiracleList_codec);
				}
			}
		}

		// Token: 0x040006F1 RID: 1777
		private static readonly MessageParser<BuyRogueShopMiracleCsReq> _parser = new MessageParser<BuyRogueShopMiracleCsReq>(() => new BuyRogueShopMiracleCsReq());

		// Token: 0x040006F2 RID: 1778
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006F3 RID: 1779
		public const int BoughtMiracleListFieldNumber = 6;

		// Token: 0x040006F4 RID: 1780
		private static readonly FieldCodec<uint> _repeated_boughtMiracleList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x040006F5 RID: 1781
		private readonly RepeatedField<uint> boughtMiracleList_ = new RepeatedField<uint>();

		// Token: 0x040006F6 RID: 1782
		public const int MonsterIdFieldNumber = 7;

		// Token: 0x040006F7 RID: 1783
		private uint monsterId_;
	}
}
